<?php
$comp_id = $_REQUEST['comp_id'];

include 'config.php';

$conn = mysql_connect($host, $user, $password) or die(mysql_error());
mysql_select_db("mweb_survey");

$sql = "DELETE FROM answers WHERE CompID='$comp_id'";
mysql_query($sql, $conn) or die(mysql_error());

header("location: index.php");
?>